<?php			
	// Set the <title> for the page
	$title = "VegasVIP4u"; 
	
	// Include the Header
	include "includes/header.php";
	
	// Find out what page to show depending on if p is set via a link being clicked
	// If someone clicked home or came from a outside link or vegasvip4u.com then show home page
	$page = $_GET['p'];
	if (isset($page)) { $calendardates = printcalendardates($date); }
	switch ($page) {
		// TEST PAGE
		case "test":
			error_reporting(E_ALL); 
			ini_set( 'display_errors','1');
			printcalendar("nightlife","Nightclub");
		break;
		// Nightlife page
		case "nightlife":
			echo"
			  <h2><font color='#ff7f00'>Nightclub Event Calendar</font></h2>
			  <h2><font color='#ff7f00'>Table Service, Bottle Service, and VIP Guest Lists at all Clubs</font></h2>
			  <h2><font color='#ff7f00'></font></h2>
			  <h3><font color='#ff7f00'>*For Reservations just click on any of the icons or listed events.</font></h3>
			  <br>
				<table id='calendar' align=center border=0>
					<tr>
						<td colspan=9><h2>Event Calendar $monthname, $year</h2></td>
					</tr>
					$calendardates
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'><img src='images/venues/rain/logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'>Closed</font></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'>Doors at 10pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'>Doors at 10pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'>Closed</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'>Closed</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'>Closed</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'>Closed</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'><img src='images/venues/playboy/logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Closed</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rain'>Closed</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=ghostbar'><img src='images/ghostbar.jpg'></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=ghostbar'>Doors <br> Open at 8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=ghostbar'>Doors <br> Open at 8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=ghostbar'>Doors<br> Open at 8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=ghostbar'>Doors <br> Open at 8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=ghostbar'>Doors <br> Open at 8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=ghostbar'>Doors<br>Open at 8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=ghostbar'>Snitch Wednesday<br>Sex Panther w/<br>M!KEATTACK</a></td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=lounge'><img src='images/lounge.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=lounge'>Open all day<br> Happy Hour 4-6pm</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=lounge'>Open all day<br> Happy Hour 4-6pm<br> 9:00 pm</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=lounge'>Sherry St. Germain &<br>the Lost Vanguards<br> 9:00 pm</font></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=lounge'>Latin Night<br>Featuring<br>Claudine Castro Band<br>9:00 pm</font></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=lounge'>Santa Fe & <br>The Fat City Horns<br>Doors at 10:30pm</font></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=lounge'>Open all day<br> Happy Hour 4-6pm</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=lounge'>Open all day<br> Happy Hour 4-6pm</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'><img src='images/moon.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'>Open DJ <br> Doors at 11pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'>Open DJ <br> Doors at 11pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'>Open DJ <br> Doors at 11pm</a></td>
						<td id=calendarcontent>Closed</td>
						<td id=calendarcontent>Closed</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'>Fancy Sauce Tuesdays<br> Doors at 11pm</a></td>
						<td id=calendarcontent>Closed</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=pearl'><img src='images/pearl.jpg'></a></td>
						<td id=calendarcontent></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=pearl'>Creed</td>
						<td id=calendarcontent></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=pearl'></a></td>
						<td id=calendarcontent></td>
						<td id=calendarcontent></td>
						<td id=calendarcontent></td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'><img src='images/palms-place-logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Ditch Fridays <br>Open <br>12 NOON</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'><br>Open <br>12 NOON</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'><img src='images/rehab-sundays.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Summercamp Fridays <br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Nectar Music Festival<br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Rehab Sundays<br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Relax Mondays<br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
					</tr>
				</table>
				<p>This website contains content and images not suitable for minors.  If you are under the age of 18 or are offended by adult oriented websites, please browse elsewhere.</p>
			";
		break;
		  // Gentlemen's Clubs Page
		case "gentlemensclubs":
			echo "
			  <h2><font color='#ff7f00'>Strip Clubs Event Calendar</font></h2>
			  <h2><font color='#ff7f00'>Table Service, Bottle Service, and VIP Guest Lists at all Clubs</font></h2>
			  <h2><font color='#ff7f00'>Free Limo Service to all Strip Clubs.</font></h2>
			  <h2><font color='#ff7f00'>If you are looking for an escort<a href='/girls4u.php'> click here.</a></font></h2>
			  <h3><font color='#ff7f00'>*For Reservations just click on any of the icons or listed events.</font></h3>
			  
				<table id='calendar'>
					<tr>
						<td colspan=9><h2>Event Calendar $monthname, $year</h2></td>
					</tr>
					$calendardates
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=sapphire'><img src='images/saph-logo.jpg' alt='strip clubs las vegas'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=sapphire'>Open 24/7</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=sapphire'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=sapphire'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=sapphire'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=sapphire'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=sapphire'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=sapphire'>Open 24/7</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=cover_girls'><img src='images/covergirls-logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=cover_girls'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=cover_girls'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=cover_girls'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=cover_girls'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=cover_girls'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=cover_girls'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=cover_girls'>Open 24/7</a></td>
						<td id=calendarcontent>&nbsp</td>
						</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=treasures'><img src='images/treasures-logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=treasures'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=treasures'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=treasures'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=treasures'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=treasures'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=treasures'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=treasures'>Open 24/7</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=crazy_horse'><img src='images/crazyhorse-logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=crazy_horse'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=crazy_horse'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=crazy_horse'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=crazy_horse'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=crazy_horse'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=crazy_horse'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=crazy_horse'>Open 24/7</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=little_darlings'><img src='images/littledarlings-logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=little_darlings'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=little_darlings'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=little_darlings'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=little_darlings'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=little_darlings'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=little_darlings'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=little_darlings'>Open 24/7</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=palomino'><img src='images/palimino-logo-1.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palomino'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palomino'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palomino'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palomino'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palomino'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palomino'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palomino'>Open 24/7</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'><img src='images/palms-place.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Ditch Fridays <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=hustler'><img src='images/hustlers-logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=hustler'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=hustler'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=hustler'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=hustler'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=hustler'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=hustler'>Open 24/7</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=hustler'>Open 24/7</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
				</table>
				<p>This website contains content and images not suitable for minors.  If you are under the age of 18 or are offended by adult oriented websites, please browse elsewhere.</p>
			";
		break;
		// Pool Parties Page
		case "poolparties":
			echo "
			  <h2><font color='#ff7f00'>Day Clubs and Pool Parties Event Calendar</font></h2>
			  <h2><font color='#ff7f00'>Bungalows, Cabanas, Bottle Service and VIP Guest Lists at all Clubs</font></h2>
			  <h3><font color='#ff7f00'>*For Reservations just click on any of the icons or listed events.</font></h3>
				<table id='calendar' align=center border=0>
					<tr>
						<td colspan=9><h2>Event Calendar $monthname, $year</h2></td>
					</tr>
					$calendardates
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'><img src='images/rehab-logo-1.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Summercamp Fridays <br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Nectar Music Festival<br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Rehab Sundays<br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Relax Mondays<br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'><img src='images/palms-place.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_place_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_pool'><img src='images/palms-place-logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_pool'>Ditch Fridays <br>Open <br>12 NOON</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_pool'>Pool & Bungalows <br>Open <br>12 NOON</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=palms_pool'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'><img src='images/venues/playboy/logo.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent>Closed</td>
						<td id=calendarcontent>Closed</td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=playboy'>Open <br> Doors at 9pm</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=tao'><img src='images/tao_beach.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=tao'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=tao'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=tao'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=tao'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=tao'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=tao'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=tao'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'><img src='images/moon.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'>Open DJ <br> Doors at 11pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'>Open DJ <br> Doors at 11pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'>Open DJ <br> Doors at 11pm</a></td>
						<td id=calendarcontent>Closed</td>
						<td id=calendarcontent>Closed</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=moon'>Open DJ <br> Doors at 11pm</a></td>
						<td id=calendarcontent>Closed</td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
					<tr align=center>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'><img src='images/rehab-sundays.jpg'></a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Summercamp Fridays <br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Nectar Music Festival<br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Rehab Sundays<br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Relax Mondays<br>Open <br>11am-8pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent><a href='/?p=reservations&venue=rehab'>Pool & Bungalows <br>Open <br>9am-6pm</a></td>
						<td id=calendarcontent>&nbsp</td>
					</tr>
				</table>
				<p>This website contains content and images not suitable for minors.  If you are under the age of 18 or are offended by adult oriented websites, please browse elsewhere.</p>
			";
		break;
		// Reservations Page
		case "reservations":
			if(!isset($_POST['email'])) {
				$selected = $_GET['venue'];
				if (isset($_SESSION['email'])) {
					$name = $_SESSION['name'];
					$phone = $_SESSION['phone'];
					$email = $_SESSION['email'];
				}
				$date = date('m-d-Y');
				echo "
					<h2><font color='#ff7f00'>VIP Reservations</font></h2>
					<p><font color='#ff7f00'>Table Service, Bottle Service, and VIP Guest Lists at all Clubs. Thank you for choosing to make a reservation with us.</font></p>
					<p><font color='#ff7f00'>Submitting a request does not guarantee your reservation. One of our VIP guest service team members will be contacting you shortly to confirm your request.</font></p>
					<p><font color='#ff7f00'>Dress codes are strictly enforced at all clubs. Must be 21 years of age and have valid ID.</font></p>
					<p><font color='#ff7f00'>Already a member and don't want to fill out all this information than 
						<a href='/?p=members&id=1'>Click Here.</a></font>
					<br>
					<form action=?p=reservations method=post class=form name=form>
						<div class=form>
							<h3>Fill out all information below then click the Reserve! button.</h3>
							<label>
								<span class=span>Full Name</span>
								<input type=text class=input_text required=require name=name id=name value=$name>
							</label>
							<label>
								<span class=span>Phone Number</span>
								<input type=text onkeypress='return isNumberKey(event)' class=input_text required=require name=phonenum id=phonenum maxlength=14 onclick=javascript:getIt(this) onfocus=javascript:getIt(this) value=$phone>
							</label>
							<label>
								<span class=span>Email (optional)</span>
								<input required=require type=text class=input_text name=email id=email value=$email>
							</label>
							<label>
								<span class=span>Repeat Email (optional)</span>
								<input required=require type=text class=input_text name=email2 id=email2 value=$email>
							</label>
							<label>
							   <span class=span>Host</span>
							   <select required=require name=host class=select_text size=1 id=host >
							   <option value=mike_sharpe>Michael S.</option>
							   <option value=adrian_martinez>Adrian</option>
							   <option value=brandon_bell>Brandon</option>
							   <option value=cesar>Cesar</option>
							   <option value=landon_white>Landon</option>
							   <option value=cody_kelly>Cody</option>
							   <option value=joseph_martinez>Joseph</option>
							   <option value=dustin_hager>Dustin</option>
							   <option value=brooke_gibson>Brooke</option>
							   <option value=dakota>Dakota</option>
							   </select>
							</label>
							<label>
							   <span required=require class=span>Venue</span>
							   <select name=venue class=select_text size=1 id=venue >
							   <option value=rain "; if ($selected == "rain") { echo "selected=selected"; } echo ">Rain</option>
							   <option value=playboy "; if ($selected == "playboy") { echo "selected=selected"; } echo ">Playboy Las Vegas</option> 
							   <option value=ghostbar "; if ($selected == "ghostbar") { echo "selected=selected"; } echo ">Ghost Bar</option>
							   <option value=lounge "; if ($selected == "lounge") { echo "selected=selected"; } echo ">The Lounge</option>
							   <option value=moon "; if ($selected == "moon") { echo "selected=selected"; } echo ">Moon Nightclub</option>
							   <option value=pearl "; if ($selected == "pearl") { echo "selected=selected"; } echo ">Pearl</option>
							   <option value=palms_place_pool "; if ($selected == "palms_place_pool") { echo "selected=selected"; } echo ">Palms Place Pool</option>
							   <option value=palms_pool "; if ($selected == "palms_pool") { echo "selected=selected"; } echo ">Palms Pool</option>
							   <option value=sapphire "; if ($selected == "sapphire") { echo "selected=selected"; } echo ">Sapphire</option>
							   <option value=cover_girls "; if ($selected == "cover_girls") { echo "selected=selected"; } echo ">Cover Girls</option>
							   <option value=pure "; if ($selected == "pure") { echo "selected=selected"; } echo ">Pure</option>
							   <option value=haze "; if ($selected == "haze") { echo "selected=selected"; } echo ">Haze</option>
							   <option value=marquee "; if ($selected == "marquee") { echo "selected=selected"; } echo ">Marque</option>
							   <option value=tao "; if ($selected == "tao") { echo "selected=selected"; } echo ">Tao</option>
							   <option value=chateau "; if ($selected == "chateau") { echo "selected=selected"; } echo ">Chateau</option>
							   <option value=vanity "; if ($selected == "vanity") { echo "selected=selected"; } echo ">Vanity</option>
							   <option value=xs "; if ($selected == "xs") { echo "selected=selected"; } echo ">XS</option>
							   <option value=surrender "; if ($selected == "surrender") { echo "selected=selected"; } echo ">Surrender</option>
							   <option value=hustler "; if ($selected == "hustler") { echo "selected=selected"; } echo ">Hustler</option>
							   <option value=little_darlings "; if ($selected == "little_darlings") { echo "selected=selected"; } echo ">Little Darlings</option>
							   <option value=treasures "; if ($selected == "treasures") { echo "selected=selected"; } echo ">Treasures</option>
							   <option value=pure "; if ($selected == "pure") { echo "selected=selected"; } echo ">Crazy Horse III</option>
							   <option value=palomino "; if ($selected == "palomino") { echo "selected=selected"; } echo ">Palomino</option>
							   <option value=rehab "; if ($selected == "rehab") { echo "selected=selected"; } echo ">Rehab BeachLife 2012</option>
							   <option value=wet_republic "; if ($selected == "wet_republic") { echo "selected=selected"; } echo ">Wet Republic</option>
							   <option value=tao_beach "; if ($selected == "tao_beach") { echo "selected=selected"; } echo ">Tao Beach</option>
							   <option value=pamela_star "; if ($selected == "pamela_star") { echo "selected=selected"; } echo ">Pamela Star</option>
							   <option value=samara "; if ($selected == "samara") { echo "selected=selected"; } echo ">Samara</option>
							   <option value=callisity"; if ($selected == "callisity") { echo "selected=selected"; } echo ">Callisity</option>
							   <option value=penelope_dash "; if ($selected == "penelope_dash") { echo "selected=selected"; } echo ">Penelope Dash</option>
							   <option value=naughty_natasha "; if ($selected == "naughty_natasha") { echo "selected=selected"; } echo ">Naughty Natasha</option>
							   <option value=trystin "; if ($selected == "trystin") { echo "selected=selected"; } echo ">Trystin</option>
							   <option value=katie_flowers "; if ($selected == "katie_flowers") { echo "selected=selected"; } echo ">Katie Flowers</option>
							   <option value=teresa "; if ($selected == "teresa") { echo "selected=selected"; } echo ">Teresa</option>
							   <option value=valerie_page "; if ($selected == "valerie_page") { echo "selected=selected"; } echo ">Valarie Page</option>
							   <option value=annalissa "; if ($selected == "annalissa") { echo "selected=selected"; } echo ">Annalissa</option>
							   <option value=paige_hilton "; if ($selected == "paige_hilton") { echo "selected=selected"; } echo ">Paige Hilton</option>
							   <option value=daniella "; if ($selected == "daniella") { echo "selected=selected"; } echo ">Daniella</option>
							   <option value=amber_taylor "; if ($selected == "amber_taylor") { echo "selected=selected"; } echo ">Amber and Taylor</option>
							   <option value=persian_pria "; if ($selected == "persian_pria") { echo "selected=selected"; } echo ">Miss Persian Pria</option>
							   <option value=breanna "; if ($selected == "breanna") { echo "selected=selected"; } echo ">Breanna</option>
							   <option value=samina "; if ($selected == "samina") { echo "selected=selected"; } echo ">Samina</option>
							   <option value=misty "; if ($selected == "misty") { echo "selected=selected"; } echo ">Misty</option>
							   <option value=dasha "; if ($selected == "dasha") { echo "selected=selected"; } echo ">Dasha</option>
							   <option value=sweet_summer "; if ($selected == "sweet_summer") { echo "selected=selected"; } echo ">Sweet Summer</option>
							</select>
							</label>
							<label>
								<span class=span>Date (click the calendar)</span>
								<a href=javascript:NewCal('cal','mmddyyyy','','','','','future')><img src=images/cal.gif border=0 alt=Pick a date></a>
								<input type=text name=date class=input_numbers size=6 id=cal maxlength=25 size=25 value='$date' required=require onkeypress='return isNumberKey(event)'>
							</label>
							<label>
								<span class=span>Number of Females</span>
								<input type=number min=0 max=1000 value=0 class=input_numbers required=require name=females id=females />
							</label>
							<label>
								<span class=span>Number of Males</span>
								<input type=number min=0 max=1000 value=0 class=input_numbers required=require name=males id=males />
							</label>
								<input type='submit' class='button' value='Reserve Now!' onclick='return ValidateReservationForm()'>
						</div>
					</form>
					<br><p>This website contains content and images not suitable for minors.  If you are under the age of 18 or are offended by adult oriented websites, please browse elsewhere.</p>
				";			
			} else {
				// get name and phone number email number of guests and date
				$name = $_POST['name'];
				$phonenum = $_POST['phonenum'];
				$email = $_POST['email'];
				$host = $_POST['host'];
				$venue = $_POST['venue'];
				$males = $_POST['males'];
				$females = $_POST['females'];
				$guests = $males+$females;
				$date = $_POST['date'];
				// Set subject to email
				$subject = "VegasVIP4u - New Reservation!";
				// Show new reservation info
				$message = "
					Name: $name <br>
					Phone Number: $phonenum <br>
					Email: $email <br><hr>
					Host: $host <br>
					Venue: $venue <br><hr>
					Guests: $guests ($males Male(s) and $females Female(s))<br>
					Date: $date <br>
				";
				// To send HTML mail, the Content-type header must be set
				$headers  = 'MIME-Version: 1.0' . "\r\n";
				$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
				// Additional headers
				$headers .= 'To: Aaron Weiler <aaron@aaronweiler.net>' . "\r\n";
				$headers .= 'From: VegasVIP4u <vegasvip4u@gmail.com>' . "\r\n";
				$headers .= 'Bcc: sharpe2434@yahoo.com' . "\r\n";
				// try to insert user info in to database
				$name = mysql_real_escape_string($name);
				$phonenum = mysql_real_escape_string($phonenum);
				$email = mysql_real_escape_string($email);
				$host = mysql_real_escape_string($host);
				$venue = mysql_real_escape_string($venue);
				$guests = mysql_real_escape_string($guests);
				$males = mysql_real_escape_string($males);
				$females = mysql_real_escape_string($females);
				$date = mysql_real_escape_string($date);
				$password = mysql_real_escape_string($password);
				$query = "INSERT INTO reservations (name, phone, email, host, venue, date, guests, females, males) VALUES ('$name', '$phonenum', '$email', '$host', '$venue', '$date', '$guests', '$females', '$males')";
				// if they already have name, phonenum, or email in database
				if (!mysql_query($query)) { echo "ERROR: ".mysql_error()." <a href=?p=reservations>BACK</a>"; }
				// if they don't have any info already in db, try to send email.
				else {
					// Try to send email
					if (mail("aaron@aaronweiler.net", $subject, $message, $headers)) {
						// if mail gets sent show them members image
						echo "
							<h2><font color='#ff7f00'>Thank You For Your Reservation</font></h2>
							<p><font color='#ff7f00'>One of our VIP guest service team members will be contacting you shortly to confirm your request.</font></p>      
							<p><font color='#ff7f00'>Table Service, Bottle Service, and VIP Guest Lists at all Clubs. Thank you for choosing to make a reservation with us.</font></p>
							<p><font color='#ff7f00'>*For another reservations just click on any of the images or listed events.</font></p>
							<a href=/?p=reservations /><center><img width=100% height=50% src=images/members.jpg alt=freelasvegasvip></center></a>
							<h2><font color='#ff7f00'>If you are looking for an escort<a href='/girls4u.php'> click here.</a></font></h2>
							<p>This website contains content and images not suitable for minors.  If you are under the age of 18 or are offended by adult oriented websites, please browse elsewhere.</p>
						";
					} else {
						// If the mail fails to send email send error
						echo "Failed to send email. Please try again <a href=?p=reservations>BACK</a>"; 
					}
				}
			}
		break;
		// Registration Page
		case "register":
			if(!isset($_POST['email'])) {
				echo "
					<h3>Fill out all information below then click Register button below</h3>
					<form action=?p=register method=post class=form name=form>
						<div class=form>
							<h3>Required</h3>
							<label>
								<span class=span>Full Name</span>
								<input type=text class=input_text required=require name=name id=name />
							</label>
							<label>
								<span class=span>Phone Number</span>
								<input type=text onkeypress='return isNumberKey(event)' class=input_text required=require name=phonenum id=phonenum maxlength=14 onclick=javascript:getIt(this) onfocus=javascript:getIt(this)>
							</label>
							<label>
								<span class=span>Email</span>
								<input type=text class=input_text required=require name=email id=email />
							</label>
							<label>
								<span class=span>Repeat Email</span>
								<input type=text class=input_text required=require name=email2 id=email2 />
							</label>
							<label>
							   <span class=span>Password</span>
							   <input type=password class=input_text required=require name=password id=password />
							</label>
							<label>
							   <span class=span>Repeat Password</span>
							   <input type=password class=input_text required=require name=password2 id=password2 />
							</label>
							<h3>Optional Stuff <br>Speeds up your reservations</h3>
							<label>
							   <span class=span>Favorite Host</span>
							   <select name=host class=select_text size=1 id=host >
							   <option value=mike_sharpe>Michael S.</option>
							   <option value=adrian_martinez>Adrian</option>
							   <option value=brandon_bell>Brandon</option>
							   <option value=cesar>Cesar</option>
							   <option value=landon_white>Landon</option>
							   <option value=cody_kelly>Cody</option>
							   <option value=joseph_martinez>Joseph</option>
							   <option value=dustin_hager>Dustin</option>
							   <option value=brooke_gibson>Brooke</option>
							   <option value=dakota>Dakota</option>
							   </select>
							</label>
							<label>
							   <span class=span>Favorite Venue</span>
							   <select name=venue class=select_text size=1 id=venue >
								   <option value=rain "; if ($selected == "rain") { echo "selected=selected"; } echo ">Rain</option>
								   <option value=playboy "; if ($selected == "playboy") { echo "selected=selected"; } echo ">Playboy Las Vegas</option> 
								   <option value=ghostbar "; if ($selected == "ghostbar") { echo "selected=selected"; } echo ">Ghost Bar</option>
								   <option value=lounge "; if ($selected == "lounge") { echo "selected=selected"; } echo ">The Lounge</option>
								   <option value=moon "; if ($selected == "moon") { echo "selected=selected"; } echo ">Moon Nightclub</option>
								   <option value=pearl "; if ($selected == "pearl") { echo "selected=selected"; } echo ">Pearl</option>
								   <option value=palms_place_pool "; if ($selected == "palms_place_pool") { echo "selected=selected"; } echo ">Palms Place Pool</option>
								   <option value=palms_pool "; if ($selected == "palms_pool") { echo "selected=selected"; } echo ">Palms Pool</option>
								   <option value=sapphire "; if ($selected == "sapphire") { echo "selected=selected"; } echo ">Sapphire</option>
								   <option value=cover_girls "; if ($selected == "cover_girls") { echo "selected=selected"; } echo ">Cover Girls</option>
								   <option value=pure "; if ($selected == "pure") { echo "selected=selected"; } echo ">Pure</option>
								   <option value=haze "; if ($selected == "haze") { echo "selected=selected"; } echo ">Haze</option>
								   <option value=marquee "; if ($selected == "marquee") { echo "selected=selected"; } echo ">Marque</option>
								   <option value=tao "; if ($selected == "tao") { echo "selected=selected"; } echo ">Tao</option>
								   <option value=chateau "; if ($selected == "chateau") { echo "selected=selected"; } echo ">Chateau</option>
								   <option value=vanity "; if ($selected == "vanity") { echo "selected=selected"; } echo ">Vanity</option>
								   <option value=xs "; if ($selected == "xs") { echo "selected=selected"; } echo ">XS</option>
								   <option value=surrender "; if ($selected == "surrender") { echo "selected=selected"; } echo ">Surrender</option>
								   <option value=hustler "; if ($selected == "hustler") { echo "selected=selected"; } echo ">Hustler</option>
								   <option value=little_darlings "; if ($selected == "little_darlings") { echo "selected=selected"; } echo ">Little Darlings</option>
								   <option value=treasures "; if ($selected == "treasures") { echo "selected=selected"; } echo ">Treasures</option>
								   <option value=pure "; if ($selected == "pure") { echo "selected=selected"; } echo ">Crazy Horse III</option>
								   <option value=palomino "; if ($selected == "palomino") { echo "selected=selected"; } echo ">Palomino</option>
								   <option value=rehab "; if ($selected == "rehab") { echo "selected=selected"; } echo ">Rehab BeachLife 2012</option>
								   <option value=wet_republic "; if ($selected == "wet_republic") { echo "selected=selected"; } echo ">Wet Republic</option>
								   <option value=tao_beach "; if ($selected == "tao_beach") { echo "selected=selected"; } echo ">Tao Beach</option>
								   <option value=pamela_star "; if ($selected == "pamela_star") { echo "selected=selected"; } echo ">Pamela Star</option>
								   <option value=samara "; if ($selected == "samara") { echo "selected=selected"; } echo ">Samara</option>
								   <option value=callisity "; if ($selected == "callisity") { echo "selected=selected"; } echo ">Callisity</option>
								   <option value=penelope_dash "; if ($selected == "penelope_dash") { echo "selected=selected"; } echo ">Penelope Dash</option>
								   <option value=naughty_natasha "; if ($selected == "naughty_natasha") { echo "selected=selected"; } echo ">Naughty Natasha</option>
								   <option value=trystin "; if ($selected == "trystin") { echo "selected=selected"; } echo ">Trystin</option>
								   <option value=katie_flowers "; if ($selected == "katie_flowers") { echo "selected=selected"; } echo ">Katie Flowers</option>
								   <option value=teresa "; if ($selected == "teresa") { echo "selected=selected"; } echo ">Teresa</option>
								   <option value=valerie_page "; if ($selected == "valerie_page") { echo "selected=selected"; } echo ">Valarie Page</option>
								   <option value=annalissa "; if ($selected == "annalissa") { echo "selected=selected"; } echo ">Annalissa</option>
								   <option value=paige_hilton "; if ($selected == "paige_hilton") { echo "selected=selected"; } echo ">Paige Hilton</option>
								   <option value=daniella "; if ($selected == "daniella") { echo "selected=selected"; } echo ">Daniella</option>
								   <option value=amber_taylor "; if ($selected == "amber_taylor") { echo "selected=selected"; } echo ">Amber and Taylor</option>
								   <option value=persian_pria "; if ($selected == "persian_pria") { echo "selected=selected"; } echo ">Miss Persian Pria</option>
								   <option value=breanna "; if ($selected == "breanna") { echo "selected=selected"; } echo ">Breanna</option>
								   <option value=samina "; if ($selected == "samina") { echo "selected=selected"; } echo ">Samina</option>
								   <option value=misty "; if ($selected == "misty") { echo "selected=selected"; } echo ">Misty</option>
								   <option value=dasha "; if ($selected == "dasha") { echo "selected=selected"; } echo ">Dasha</option>
								   <option value=sweet_summer "; if ($selected == "sweet_summer") { echo "selected=selected"; } echo ">Sweet Summer</option>
								</select>
							</label>
							<label>
								<span class=span>Usual Number of Females</span>
								<input type=number min=0 max=1000 value=0 class=input_numbers required=require name=females id=females />
							</label>
							<label>
								<span class=span>Usual Number of Males</span>
								<input type=number min=0 max=1000 value=0 class=input_numbers required=require name=males id=males />
							</label>
								<input type='submit' class='button' value='Register' onclick='return ValidateRegisterForm()'>
						</div>
					</form>
					<p>This website contains content and images not suitable for minors.  If you are under the age of 18 or are offended by adult oriented websites, please browse elsewhere.</p>
					<br><br>
				";			
			} else {
				// Grab emails and passwords to check if they are vaild and match
				$email = $_POST['email'];
				$email2 = $_POST['email2'];
				$password = $_POST['password'];
				$password2 = $_POST['password2'];
				if ($email != $email2) {
					// throw error if the emails are not the same
					echo "Email addresses are not the same <a href=?p=register>BACK</a>";
				} else if ($password != $password2) {
					// throw error if passwords are not the same
					echo "Passwords are not the same <a href=?p=register>BACK</a>";
				} else {
					if (!validEmail($email)) {
						// throw error if email address is not valid
						echo "Email address is not valid <a href=?p=register>BACK</a>";
					} else {
						// get name and phone number
						$name = $_POST['name'];
						$phonenum = $_POST['phonenum'];
						$host = $_POST['host'];
						$venue = $_POST['venue'];
						$females = $_POST['females'];
						$males = $_POST['males'];
						// Set subject to email
						$subject = "VegasVIP4u - New Member Registered!";
						// Show new members register info
						$message = "
							Name: $name <br>
							Phone Number: $phonenum <br>
							Email: $email <br>
							Favorite Host: $host<br>
							Favorite Venue: $venue<br>
							Usual # of Females: $females<br>
							Usual # of Males: $males<br>
						";
						// To send HTML mail, the Content-type header must be set
						$headers  = 'MIME-Version: 1.0' . "\r\n";
						$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
						// Additional headers
						$headers .= 'To: Aaron Weiler <aaron@aaronweiler.net>' . "\r\n";
						$headers .= 'From: VegasVIP4u <vegasvip4u@gmail.com>' . "\r\n";
						$headers .= 'Bcc: sharpe2434@yahoo.com' . "\r\n";
						// try to insert user info in to database
						$name = mysql_real_escape_string($name);
						$phone = mysql_real_escape_string($phone);
						$email = mysql_real_escape_string($email);
						$password = mysql_real_escape_string($password);
						$query = "INSERT INTO members (name, phone, email, password) VALUES ('$name', '$phonenum', '$email', '$password')";
						// if they already have name, phonenum, or email in database
						if (!mysql_query($query)) { echo "ERROR: ".mysql_error()." <a href=?p=register>BACK</a>"; }
						// if they don't have any info already in db, try to send email.
						else {
							// Try to send email
							if (mail("aaron@aaronweiler.net", $subject, $message, $headers)) {
								session_register("name",$name);
								session_register("phone",$phone);
								session_register("email",$email);
								// if mail gets sent show them members image
								echo "
									<script language='javascript' type='text/javascript'>
										window.location.href='/?p=members';
									</script>
								";	
							} else {
								// If the mail fails to send email send error
								echo "Failed to send email. Please try again <a href=?p=register>BACK</a>"; 
							}
						}
					}
				}
			}
		break;
		// Members Page
		case "members":
			if (isset($_POST['email']) && isset($_POST['password']) && !isset($_SESSION['email'])) {
				$email = mysql_real_escape_string($_POST['email']);
				$password = mysql_real_escape_string($_POST['password']);
				$result = mysql_query("SELECT name,phone,email,password FROM members") or die (mysql_error());
				$num_rows = mysql_num_rows($result);
				if ($num_rows < 1) { echo "No email/password combonation found in database. Please try again. <a href=?p=members>BACK</a>"; } 
				else {
					while($row = mysql_fetch_array($result)) {
						if ($row['email'] == $email && $row['password'] == $password) {
							$name = $row['name'];
							$phone = $row['phone'];
							session_register("name",$name);
							session_register("phone",$phone);
							session_register("email",$email);
							if (isset($_GET['id'])) {
								echo "
									<script language='javascript' type='text/javascript'>
										window.location.href='/?p=reservations';
									</script>
								";							
							} else {
								echo "
									<script language='javascript' type='text/javascript'>
										window.location.href='/?p=members';
									</script>
								";	
							}
							exit;
						}
					}
				}
			} else if (!isset($_SESSION['email'])) { 
				if (isset($_GET['id'])) { $action = '?p=members&id=1'; } else { $action = '?p=members'; }
				echo "
					<form action=$action method=post class=form>
						<div class=form>
							<h3>Don't have a membership with us yet? <a href=?p=register>Click Here</a></h3>
							<label>
								<span class=span>Email</span>
								<input type=text class=input_text required=require name=email id=email/>
							</label>
							<label>
							   <span class=span>Password</span>
							   <input type=password class=input_text required=require name=password id=password/>
							</label>
								<input type='submit' class='button' value='Login' onclick='return ValidateMembersLoginForm()'>
						</div>
					</form>
					<br><br>
				";	
			} else if (isset($_SESSION['email'])) {
				if (isset($_GET['id'])) {
					echo "
						<script language='javascript' type='text/javascript'>
							window.location.href='/?p=reservations';
						</script>
					";							
				} else {
					echo "
						<h2><font color='#ff7f00'>Members Special Offers</font></h2>
						<h2><font color='#ff7f00'>Strip Clubs- Free Limo and One Free Drink and $100 Off A Bottle.</font></h2>      
						<h2><font color='#ff7f00'>Table Service, Bottle Service, and VIP Guest Lists at all Clubs.</font></h2>
						<h2><font color='#ff7f00'>If you are looking for an escort<a href='/girls4u.php'> click here.</a></font></h2>
						<p align='center'><font color='#ff7f00'>*For Reservations just click on any of the images or listed events.</font></p>
						<a href=/?p=reservations /><center><img width=100% height=50% src=images/members.jpg alt=free limosines las vegas></center></a>
						<h2><font color='#ff7f00'>If you are looking for an escort<a href='/girls4u.php'> click here.</a></font></h2>
						<p>This website contains content and images not suitable for minors.  If you are under the age of 18 or are offended by adult oriented websites, please browse elsewhere.</p>
					";
				}
			} else {
				echo "UH OH";
			}
		break;
		// Insert data to calendar database
		case "updatecalendar":
			if (!isset($_POST['venue'])) {
				$date = date('m-d-Y');
				echo "
					<br>
					<form action=?p=updatecalendar method=post class=form name=form>
						<div class=form>
							<h3>Fill out all information below then click the Submit button below</h3>
							<label>
							   <span class=span>Venue</span>
							   <select name=venue class=select_text size=1 id=venue>
								   <option value=rain "; if ($selected == "rain") { echo "selected=selected"; } echo ">Rain</option>
								   <option value=playboy "; if ($selected == "playboy") { echo "selected=selected"; } echo ">Playboy Las Vegas</option> 
								   <option value=ghostbar "; if ($selected == "ghostbar") { echo "selected=selected"; } echo ">Ghost Bar</option>
								   <option value=lounge "; if ($selected == "lounge") { echo "selected=selected"; } echo ">The Lounge</option>
								   <option value=moon "; if ($selected == "moon") { echo "selected=selected"; } echo ">Moon Nightclub</option>
								   <option value=pearl "; if ($selected == "pearl") { echo "selected=selected"; } echo ">Pearl</option>
								   <option value=palms_place_pool "; if ($selected == "palms_place_pool") { echo "selected=selected"; } echo ">Palms Place Pool</option>
								   <option value=palms_pool "; if ($selected == "palms_pool") { echo "selected=selected"; } echo ">Palms Pool</option>
								   <option value=sapphire "; if ($selected == "sapphire") { echo "selected=selected"; } echo ">Sapphire</option>
								   <option value=cover_girls "; if ($selected == "cover_girls") { echo "selected=selected"; } echo ">Cover Girls</option>
								   <option value=pure "; if ($selected == "pure") { echo "selected=selected"; } echo ">Pure</option>
								   <option value=haze "; if ($selected == "haze") { echo "selected=selected"; } echo ">Haze</option>
								   <option value=marquee "; if ($selected == "marquee") { echo "selected=selected"; } echo ">Marque</option>
								   <option value=tao "; if ($selected == "tao") { echo "selected=selected"; } echo ">Tao</option>
								   <option value=chateau "; if ($selected == "chateau") { echo "selected=selected"; } echo ">Chateau</option>
								   <option value=vanity "; if ($selected == "vanity") { echo "selected=selected"; } echo ">Vanity</option>
								   <option value=xs "; if ($selected == "xs") { echo "selected=selected"; } echo ">XS</option>
								   <option value=surrender "; if ($selected == "surrender") { echo "selected=selected"; } echo ">Surrender</option>
								   <option value=hustler "; if ($selected == "hustler") { echo "selected=selected"; } echo ">Hustler</option>
								   <option value=little_darlings "; if ($selected == "little_darlings") { echo "selected=selected"; } echo ">little Darlings</option>
								   <option value=treasures "; if ($selected == "treasures") { echo "selected=selected"; } echo ">Treasures</option>
								   <option value=pure "; if ($selected == "pure") { echo "selected=selected"; } echo ">Crazy Horse III</option>
								   <option value=palomino "; if ($selected == "palomino") { echo "selected=selected"; } echo ">Palomino</option>
								   <option value=rehab "; if ($selected == "rehab") { echo "selected=selected"; } echo ">Rehab BeachLife 2012</option>
								   <option value=wet_republic "; if ($selected == "wet_republic") { echo "selected=selected"; } echo ">Wet Republic</option>
								   <option value=tao_beach "; if ($selected == "tao_beach") { echo "selected=selected"; } echo ">Tao Beach</option>
								</select>
							</label>
							<label>
								<span class=span>Date (click the calendar)</span>
								<a href=javascript:NewCal('cal','mmddyyyy','','','','','future')><img src=images/cal.gif border=0 alt=Pick a date></a>
								<input type=text name=date class=input_numbers size=6 id=cal maxlength=25 size=25 value='$date' required=require onkeypress='return isNumberKey(event)'>
							</label>
							<label>
								<span class=span>Content</span>
								<input type='text' value='Open 24/7' class=input_text required=require name=content id=content />
							</label>
								<input type='submit' class='button' value='Update'>
							<br>
						</div>
					</form>
				";
			} else {
				$venue = $_POST['venue'];
				$date = $_POST['date'];
				// This is the object used for getting dates to print them out. It is based off the date inputted above on $startdate
				$datetime = date('Y-m-d',$date);
				$day = $date->format('j');
				$content = $_POST['content'];
				$query = "INSERT INTO calendar (venue, day, content) VALUES ('$venue', '$day', '$content')";
				if (!mysql_query($query)) { echo "ERROR: ".mysql_error()." <a href=?p=updatecalendar>BACK</a>"; }
				else { echo "Input Complete"; }
			}
		break;
		// Main Page (aka Home Page)
		default:
		  echo "
			<center>
				<a href=/?p=reservations />
					<img src=images/vegassign.png width=30% height=30% alt=vegas vip 24/7 host service />
				</a>
			</center>
<h2>
We are a 24/7 VIP Hosting Service based in Las Vegas.<BR>
We Provide access to all Nightclubs, Strip Clubs, and Pool Parties.<BR>
Plus Special VIP Packages which offer Exclusive VIP Entry to all clubs.<BR>
It's as easy as clicking on an event or venue from the Event Calendars on our<br>
Nightclubs, Gentlemen's Clubs, or Pool Parties links or just click on the<br> Reservations Link and fill out the Reservation Form, hit the Submit<br>
 button, and we will have you in a Limo in less than 30 minutes<br> 
 to the Club of your choice. It is that easy.</h2>
<h2>Let our Hosts take you on a fun filled adventure of the Las Vegas Strip!<br>
We look forward to serving your needs on your next Las Vegas Trip.<br>
Thanks,<br>
VegasVIP4u.com
</h2>
<p>This website contains content and images not suitable for minors.  If you are under the age of 18 or are offended by adult oriented websites, please browse elsewhere.</p>
		  ";
		break;
	}
	// Include the Footer
	include "includes/footer.php"; 
?>